package com.cmcc.waf.report.request;

import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author liang_jinxin
 * @date 2025/1/15 16:03
 */
@Data
public class ThreatTypeRequest {

    //@ApiModelProperty(value = "域名", required = true)
    private String domain;

    //@NotBlank(message = "开始时间不能为空")
    @ApiModelProperty(value = "开始时间", required = true)
    private String startTime;

    //@NotBlank(message = "结束时间不能为空")
    @ApiModelProperty(value = "结束时间", required = true)
    @JsonProperty(defaultValue = "1")
    private String endTime;

    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型:1-国内；2-国外", required = true, example = "1")
    @JsonProperty(defaultValue = "1")
    private Integer type;

    @ApiModelProperty(value = "页码", example = "1")
    @JsonProperty(defaultValue = "1")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "数量", example = "10")
    @JsonProperty(defaultValue = "10")
    private Integer pageSize = 10;

}
